package com.test.design_pattern.strategy.mashibing;

public class DogComparator implements MyComparator<Dog> {

    @Override
    public int compare(Dog t1, Dog t2) {
        if (t1.getFood() < t2.getFood()){
            return -1;
        }else if(t1.getFood()>t2.getFood()){
            return 1;
        }else {
            return 0;
        }
    }
}